package com.maiworld.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.maiworld.pojo.AnswerFeedback;
import com.maiworld.pojo.Subject;

public interface AnswerFeedbackMapper {

	int addAnswerFeedback(AnswerFeedback answerFeedback);
	
	int addAnswerFeedbackL(AnswerFeedback answerFeedback);
	
	AnswerFeedback selectAnswerFeedbackL(AnswerFeedback answerFeedback);
	
	List<AnswerFeedback> searchAnswerFeedbackL(AnswerFeedback answerFeedback);
	
	int updateAnswerFeedbackL(AnswerFeedback answerFeedback);
	
	List<AnswerFeedback> selectAnswerFeedback(AnswerFeedback answerFeedback);
	
	int insertCorrect(@Param("correct") List<Subject> correct);
	
	int insertError(@Param("error") List<Subject> error);
	
	List<Subject> selectQuestion(Subject sub);
}
